package com.hsgene.user.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import java.util.Date;

/**
 * 用户角色分类信息Entry
 *
 * @author wangbing
 * @version 1.0, 2018/6/22
 */
@Deprecated
public class UserClass {

    /**
     * 用户id
     */
    private String userId;

    /**
     * 用户类型
     */
    private String userType;

    /**
     * 是否禁用
     */
    private Boolean available;

    /**
     * 创建人用户id
     */
    private String creatorId;

    /**
     * 注册IP
     */
    private String registerIp;

    /**
     * 注册IP所在地
     */
    private String registerAddress;

    /**
     * 注册额外信息（JSON，主要用于存储用户注册相关设备等额外信息）
     */
    private String registerExtraInfo;

    /**
     * 最近一次登录IP
     */
    private String lastLoginIp;

    /**
     * 最近一次登录IP所在地
     */
    private String lastLoginAddress;

    /**
     * 最近一次登录额外信息（JSON，主要用于存储用户最近一次登录相关设备等额外信息）
     */
    private String lastLoginExtraInfo;

    /**
     * 最近一次登录时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date lastLoginTime;

    /**
     * 创建时间（注册时间）
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date updateTime;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public Boolean getAvailable() {
        return available;
    }

    public void setAvailable(Boolean available) {
        this.available = available;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    public String getRegisterIp() {
        return registerIp;
    }

    public void setRegisterIp(String registerIp) {
        this.registerIp = registerIp;
    }

    public String getRegisterAddress() {
        return registerAddress;
    }

    public void setRegisterAddress(String registerAddress) {
        this.registerAddress = registerAddress;
    }

    public String getRegisterExtraInfo() {
        return registerExtraInfo;
    }

    public void setRegisterExtraInfo(String registerExtraInfo) {
        this.registerExtraInfo = registerExtraInfo;
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    public String getLastLoginAddress() {
        return lastLoginAddress;
    }

    public void setLastLoginAddress(String lastLoginAddress) {
        this.lastLoginAddress = lastLoginAddress;
    }

    public String getLastLoginExtraInfo() {
        return lastLoginExtraInfo;
    }

    public void setLastLoginExtraInfo(String lastLoginExtraInfo) {
        this.lastLoginExtraInfo = lastLoginExtraInfo;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
